package com.googlecode.hessianserver.example.api;

import java.math.BigInteger;

/**
 * Interface for demonstrating basic HessianServer functionality
 *
 * @author rayvanderborght
 */
public interface Calculator
{
	/**
	 * Add two integers
	 */
	public int add(int a, int b);

	/**
	 * Multiply two integers
	 */
	public int multiply(int a, int b);

	/**
	 * Divide two integers (demonstrates exception handling with / by zero)
	 */
	public int divide(int a, int b);

	/**
	 * Add two big integers (demonstrates method overloading)
	 */
	public BigInteger add(BigInteger a, BigInteger b);
}
